package com.atguigu.tingshu.album.client;

import com.atguigu.tingshu.model.album.AlbumAttributeValue;
import com.atguigu.tingshu.model.album.AlbumInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

/**
 * 专辑数据查询的Feign接口
 *
 * @author Taeyang
 * @date 2025/4/28
 */
@FeignClient(name = "service-album", path = "/client/album/albumInfo", contextId = "AlbumInfoFeignClient")
public interface AlbumInfoFeignClient {

    /**
     * 根据id查询专辑的详细信息
     *
     * @param albumId
     * @return
     */
    @GetMapping("/getAlbumInfoById/{albumId}")
    public AlbumInfo getAlbumInfoById(@PathVariable("albumId") Long albumId);

    /**
     * 查询专辑的统计数据
     *
     * @param id
     * @return
     */
    @GetMapping("/getAlbumStat/{id}")
    public Map<String, Object> getAlbumStat(@PathVariable("id") Long id);

    /**
     * 查询专辑的标签属性列表
     *
     * @param id
     * @return
     */
    @GetMapping("/getAlbumAttributeValueList/{id}")
    public List<AlbumAttributeValue> getAlbumAttributeValueList(@PathVariable("id") Long id);
}
